package com.storeroompda.ui.config;

import com.storeroompda.base.present.BasePresenter;

public class ConfigPresent extends BasePresenter<ConfigModel, ConfigView> implements ConfigModel.CallBack {
    public void config(String address, String port) {
        view.showProgress();
        model.config(address, port,this);
    }

    public void disconnect() {
        model.disconnect(this);
    }

    @Override
    public void onconfigSuccess() {
        view.hideProgress();
        view.config("连接成功");
    }

    @Override
    public void onFail(String str) {
        view.hideProgress();
        view.showMsg(str);
        view.config("连接失败");
    }
}


